package com.jinghao.ctws.util;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

import java.io.IOException;
import java.util.Properties;

public class PropertiesManager extends PropertyPlaceholderConfigurer {

    private Properties properties;

    public String getString(String key) {
        return properties.getProperty(key);
    }

    @Override
    protected Properties mergeProperties() throws IOException {
        properties = super.mergeProperties();
        return properties;
    }
}
